# $Id: PKGBUILD 88778 2013-04-22 10:14:34Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Philipp Sandhaus <philipp.sandhaus@gmx.de>

pkgname=ktoblzcheck
pkgver=1.41
pkgrel=1
pkgdesc="A library to check account numbers and bank codes of German banks"
arch=(i686 x86_64)
url="http://ktoblzcheck.sourceforge.net"
options=('!libtool')
license=("LGPL")
depends=('gcc-libs' 'python')
optdepends=('perl')
source=(http://downloads.sourceforge.net/sourceforge/ktoblzcheck/ktoblzcheck-$pkgver.tar.gz
	ktoblzcheck-python3.patch)
md5sums=('48f6d0086d780d1c101b17b5b63706f3'
         'a81a697bb3aaeffb7fac0ad7d9166e3f')

build() {
  cd "$srcdir/ktoblzcheck-$pkgver"
  ./configure --prefix=/usr
  patch -p1 <$srcdir/ktoblzcheck-python3.patch
  make
}

package() {
  cd "$srcdir/ktoblzcheck-$pkgver"
  make DESTDIR="$pkgdir" install
}
